from pyecharts.charts import Line
from pyecharts.charts import Bar
from pyecharts.charts import Grid
from pyecharts import options
titles=["额过完年","撒大规模胖","好人合格"]
looks=["30000","56788","63211"]
like=["30000","26780","32181"]

bar=Bar()
line=Line()
#添加属性
bar.add_xaxis(titles)
bar.add_yaxis("阅读量",looks)
bar.add_yaxis("点赞量",like)
line.add_xaxis(titles)
line.add_yaxis("阅读量",looks)
line.add_yaxis("点赞量",like)
#创建组合对象
grid=Grid()
grid.add(line,grid_opts=options.GridOpts(pos_bottom="60%"))
grid.add(bar,grid_opts=options.GridOpts(pos_bottom="60%"))
grid.render("组合.html")
